package com.campusbackend.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 文件上传配置类
 * 
 * @author yezi
 * @since 2025-07-27
 */
@Data
@Component
@ConfigurationProperties(prefix = "file")
public class FileUploadConfig {
    
    /**
     * 上传配置
     */
    private Upload upload = new Upload();
    
    /**
     * 访问配置
     */
    private Access access = new Access();
    
    @Data
    public static class Upload {
        /**
         * 文件存储路径
         */
        private String path;
    }
    
    @Data
    public static class Access {
        /**
         * 文件访问域名
         */
        private String domain;
    }
}
